package com.myrpc.server;

import com.myrpc.codec.Decoder;
import com.myrpc.codec.Encoder;
import com.myrpc.codec.JSONDecoder;
import com.myrpc.codec.JSONEncoder;
import com.myrpc.transport.HTTPTransportServer;
import com.myrpc.transport.TransportServer;
import lombok.Data;

/**
 *
 */
@Data
public class RpcServerConfig {
    private Class<? extends TransportServer> transportClass = HTTPTransportServer.class;
    private Class<? extends Encoder> encoder = JSONEncoder.class;
    private Class<? extends Decoder> decoder = JSONDecoder.class;
    private int port = 3000;
}
